﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Colors.Xroad.Eu;
using Xtee.XteeClient.Colors;


namespace Client
{
    class Program
    {
        static void Main(string[] args)
        { 
            var adapter = new ColorsAdapter();
            adapter.XteeCommand.Add(new CommandLoggingInterceptor());
            Console.WriteLine(adapter.XteeCommand.GetType().AssemblyQualifiedName);
             
            var settings = adapter.ConfigureAlphaComponent(45, new List<UserRole> { new UserRole(1, 2) });
            Console.WriteLine(settings.Settings.AlphaComponent);

            var color = new Color();
            color.Add(4);
            color.Add(5);
            color.Add(6);  
            if ((bool)adapter.CanMix(color).Response)
            {
                var result = adapter.MixSingle(new Mix(new Color(color.ToString()), new Color {44, 56, 65}));
                Console.WriteLine(result.ToString());
            }
        }

    }
}
